package edu.sctu.practice.class01.renpingan.assign03.circle;

/**
 * Created by Administrator on 2015/10/8.
 */
public class Circle {
    public double square;
    public int numOfObjects = 1 ;
    public int radius;

    //构造函数
    public Circle(int radius) {
        this.radius = radius;
        accountsquare();
    }

    //求面积
    public double accountsquare() {
        square = (Math.PI * radius * radius);
        return square;
    }

}
